package de.fhaugsburg.games.boardgames.scrabble.managment;

import java.util.ArrayList;
import java.util.List;

import de.fhaugsburg.games.boardgames.Pool;
import de.fhaugsburg.games.boardgames.scrabble.LetterPiece;

public class ScrabblePool extends Pool {
	
private List letters = new ArrayList<LetterPiece>();
		
	
	public ScrabblePool(){
		
		for (int i = LetterPiece.A.getAmountLetters(); i > 0; i--) {
			put(LetterPiece.A);
		}
		for (int i = LetterPiece.B.getAmountLetters(); i > 0; i--) {
			put(LetterPiece.B);
		}
		for (int i = LetterPiece.C.getAmountLetters(); i > 0; i--) {
			put(LetterPiece.C);
		}
		for (int i = LetterPiece.D.getAmountLetters(); i > 0; i--) {
			put(LetterPiece.D);
		}
		for (int i = LetterPiece.E.getAmountLetters(); i > 0; i--) {
			put(LetterPiece.E);
		}
		for (int i = LetterPiece.F.getAmountLetters(); i > 0; i--) {
			put(LetterPiece.F);
		}
		for (int i = LetterPiece.G.getAmountLetters(); i > 0; i--) {
			put(LetterPiece.G);
		}
		for (int i = LetterPiece.H.getAmountLetters(); i > 0; i--) {
			put(LetterPiece.H);
		}
		for (int i = LetterPiece.I.getAmountLetters(); i > 0; i--) {
			put(LetterPiece.I);
		}
		for (int i = LetterPiece.J.getAmountLetters(); i > 0; i--) {
			put(LetterPiece.J);
		}
		for (int i = LetterPiece.K.getAmountLetters(); i > 0; i--) {
			put(LetterPiece.K);
		}
		for (int i = LetterPiece.L.getAmountLetters(); i > 0; i--) {
			put(LetterPiece.L);
		}
		for (int i = LetterPiece.M.getAmountLetters(); i > 0; i--) {
			put(LetterPiece.M);
		}
		for (int i = LetterPiece.N.getAmountLetters(); i > 0; i--) {
			put(LetterPiece.N);
		}
		for (int i = LetterPiece.O.getAmountLetters(); i > 0; i--) {
			put(LetterPiece.O);
		}
		for (int i = LetterPiece.P.getAmountLetters(); i > 0; i--) {
			put(LetterPiece.P);
		}
		for (int i = LetterPiece.Q.getAmountLetters(); i > 0; i--) {
			put(LetterPiece.Q);
		}
		for (int i = LetterPiece.R.getAmountLetters(); i > 0; i--) {
			put(LetterPiece.R);
		}
		for (int i = LetterPiece.S.getAmountLetters(); i > 0; i--) {
			put(LetterPiece.S);
		}
		for (int i = LetterPiece.T.getAmountLetters(); i > 0; i--) {
			put(LetterPiece.T);
		}
		for (int i = LetterPiece.U.getAmountLetters(); i > 0; i--) {
			put(LetterPiece.U);
		}
		for (int i = LetterPiece.V.getAmountLetters(); i > 0; i--) {
			put(LetterPiece.V);
		}
		for (int i = LetterPiece.W.getAmountLetters(); i > 0; i--) {
			put(LetterPiece.W);
		}
		for (int i = LetterPiece.X.getAmountLetters(); i > 0; i--) {
			put(LetterPiece.X);
		}
		for (int i = LetterPiece.Y.getAmountLetters(); i > 0; i--) {
			put(LetterPiece.Y);
		}
		for (int i = LetterPiece.Z.getAmountLetters(); i > 0; i--) {
			put(LetterPiece.Z);
		}
		
	}
	

}
